package com.example.webdome.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.webdome.pojo.Result;
import com.example.webdome.pojo.Validation;
import com.xiaoleilu.hutool.date.DateTime;
import org.springframework.transaction.annotation.Transactional;

public interface ValidationService extends IService<Validation> {

   void saveCode(String email, String code, int type, DateTime offsiteMinute);

   Result sendRegisterEmail(String email);


    @Transactional
    Result sendFindEmail(String email);
}
